package org.sbbs.app.demo.dao.hibernate;

import java.util.List;

import org.sbbs.app.demo.dao.DemoEntityDao;
import org.sbbs.app.demo.model.DemoEntity;
import org.sbbs.base.dao.hibernate.BaseDaoHibernate;
import org.springframework.stereotype.Repository;

@Repository("demoEntityDao")
public class DemoEntityDaoHibernate extends BaseDaoHibernate<DemoEntity, Long>
		implements
			DemoEntityDao {

	public DemoEntityDaoHibernate() {
		super(DemoEntity.class);
	}

	@Override
	public List<DemoEntity> getAll() {
		/*this
				.getHibernateTemplate()
				.enableFilter("lessId")
				.setParameter(
						"idV",
						"OfUuEtElYoXmMvEdFcVaCqElIcZdMkEkBoCxGmJbDwXhBmAyXlNxViAfMuWmGmEwZaCrLjKjUfTjRyAcKdLiRpTtYpEcJfNkEgOsKsYdQjKyDqTaAjVuBrGjNuMdOvDeUyOwSwWeNbCvLkJiZmIoAoHwUnZhFvPjFeHdBaXgAaUiLmYnLhBkUcDkLiJsKaEdApLsSeSyAqZfXeCgZmYwBwTsHnLfXlUzSdGbDaWdSlNeQjLrUlEoBkBiGbFrNvS");*/
		return this.getHibernateTemplate().loadAll(DemoEntity.class);
	}

}
